package com.project.controller;

import com.project.bean.LinkBean;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("my")
public class NewController {
    @RequestMapping("getLink")
    public LinkBean getLink(){
        return new LinkBean("张三","1998-09-21","13990837347");
    }

    @RequestMapping("getWord")
    public String getWord(){
        return "<a href=/link/findAll>超链接</a>";
    }
    @RequestMapping("Confession")
    public String love(){
        return "Do you know how Love you is me ";
    }
}
